home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 26 (Anniversary Edition)
/
Volume 26 [Anniversary Edition] - JOGO DISK .iso
/
DEPOSITO
/
REmovido
/
Esportes
/
BowlingMaster.swf
/
scripts
/
DefineSprite_71
/
frame_1
/
DoAction.as
Wrap
Text File
|
2006-06-13
|
2KB
|
76 lines
this.onEnterFrame = function()
{
i = 1;
while(i <= 22)
{
if(_root["x" + i].text == "X")
{
cont = 0;
suma = 0;
j = 1;
while(j <= 4)
{
if(_root.scorVect[i + j] != -1)
{
locCont = i + j;
if(_root["x" + locCont].text == "/")
{
suma += 10 - _root.scorVect[i + j - 1];
}
else
{
suma += _root.scorVect[i + j];
}
cont++;
if(cont == 2)
{
j = 5;
}
}
j++;
}
if(cont == 2)
{
locCont = i - 1;
_root["s" + locCont].text = 10 + suma;
_root.sTot += 10 + suma;
_root.total.text = _root.Stot;
_root["x" + i].text = " X ";
}
}
i++;
}
i = 1;
while(i <= 22)
{
if(_root["x" + i].text == "/")
{
cont = 0;
suma = 0;
j = 1;
while(j <= 2)
{
if(_root.scorVect[i + j] != -1)
{
suma += _root.scorVect[i + j];
cont++;
if(cont == 1)
{
j = 3;
}
}
j++;
}
if(cont == 1)
{
locCont = i - 1;
_root["s" + locCont].text = 10 + suma;
_root.sTot += 10 + suma - _root.scorVect[i - 1];
_root.total.text = _root.Stot;
_root["x" + i].text = " / ";
}
}
i++;
}
};